package ExpressTwo;

import javax.swing.*;

public class ShowComfit extends JDialog {
    ShowComfit(){
        JTextField textField=new JTextField();
        textField.setColumns(10);
        JButton btn=new JButton("确定");
        JPanel panel=new JPanel();
        panel.add(textField);
        panel.add(btn);
        add(panel);
        setVisible(true);
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    }

    public static void main(String[] args) {
        new ShowComfit();
    }
}
